{template "header.html"}
<!--首页导航-->
{template "index-daohang.html"}
<!--左边圈子-->
{template "index-zuobian.html"}
<!--首页列表-->

<div class="container d-gao-80 {if $_GET['s'] == 'quan' && $_GET['id'] > 0} d-yincang {/if}">
</div>
<div class="d-container d-yincang-pc d-huading-0" style="background-color: {$beijingyanse}">
	<div class="d-row">
    	<div class="d-col-md-8">
			<div class="d-yuanjiao-bianhua-10-10 d-kuan d-beijing-baise d-bianhua-20 " style="background-color: {$beijingyanse}">
				<!--圈子头部-->
				<div class="row">
					<!--返回-->
					<div class="col-md-12 col-xs-12 d-div-zou  d-buhuanhang d-yincang-pc d-huading-100"> 
					    <a href="javascript:goBack();">
					        <img class="d-yuanjiao-20 pull-left" src="static/quan/img/fanhui.svg" height="20px"/>
						</a>
						<a href="{CLIENT_URL}index.php?ye=0">
						    <img class="pull-right" src="static/quan/img/shouye3.png" height="20px"/> 
						</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="d-container">
	<div class="d-row">
	    <div class="d-col-md-8">
			{if $daohang==1 || $daohang==3}
			<div class="d-dingwei-you-150  ">
				<div class="d-dingwei-you-150-ding d-beijing-baise d-yuanjiao-10 d-wenzi-juzhong">
					<div class="d-shang-10 d-neikuang-5-10 d-wenzi-16 {if $_GET['qid'] == ''}d-a-hei d-jiacu {else} d-a-hui {/if}">
						<a href="/index.php?s=quan&c=show&id={$id}">全部</a>
					</div>
					{php $i=1;}
					{loop $son_type $tid $name}
					<div class="d-neikuang-5-10 d-wenzi-16  {if $_GET['qid'] == $i } d-jiacu d-a-hei {else} d-a-hui{/if}">
						<a href="/index.php?s=quan&c=show&id={$id}&qid={$i}">{$name}</a>
					</div>
					{php $i++;}
					{/loop}
				</div>
			</div>
			{/if}
			<div class="d-yuanjiao-bianhua-10-10 d-kuan d-beijing-baise d-bianhua-20 " style="background-color: {$beijingyanse}">
				<!--圈子头部-->
				<div class="row">
					<!--返回-->
					
					<div class="d-kuan d-buhuanhang d-a-bai">
						<div class="d-kuan ">
							<div class="col-md-12 col-xs-12 d-waigao-20 d-xia-20 d-div-zou  d-buhuanhang">
								<div class=" d-yuanjiao-10">
									<img class="d-yuanjiao-20" src="{dr_get_file($thumb)}" height="60px"/>
								</div>
								<div class="d-zuo-10">
									<div class="d-jiacu d-wenzi-16 d-zitiyanse-bai-100">{$title}</div>
									<div class="d-wenzi-14 d-zitiyanse-bai d-wenzi-touming-60 d-buhuanhang">
										<span >
											帖子 
										    {count action=table table=1_quan_form_son cid=$id return=tiezi}
										    {$tiezi_count}
										</span> 
										<span class="d-buhuanhang d-zuo-10"> 会员 <div class="d-zuo-10" {if $member} id="module_joins_{$id}"{/if}>{intval($joins)}</div></span>
									</div>
								</div>
							</div>
						</div>
						<div class="d-kuan-100  d-xia-20 d-you-10 d-quxian-0">
							<a class="tag_joins" id="tag_joins_{$id}" data-id="{$id}"> 
							    {dr_quan_tag_joins($id,$joins)} 
							</a>
							
						</div>
					</div>
					<div class="d-kuan d-buhuanhang d-a-bai d-zitiyanse-bai-100">
						<div class="col-md-12 col-xs-12 d-wenzi-touming-90">
							{$description} 
						</div>
					</div>
					<div class="d-kuan d-buhuanhang d-a-bai d-zitiyanse-bai-100 d-shang-10">
						
						<div class="col-md-4 col-xs-4 ">
							<div class="d-beijing-baise-10 d-hanggao-30 d-yuanjiao-10 d-wenzi-juzhong">分享</div>
					    </div>
						<div class="col-md-4 col-xs-4 ">
							<div class="d-beijing-baise-10 d-hanggao-30 d-yuanjiao-10 d-wenzi-juzhong">
								<div class="col-xs-6 d-wenzi-youbian">
									<a class="tag_quanzan " id="tag_quanzan_{$id}" data-id="{$id}">
										{dr_quan_tag_quanzan($id,$quanzan)} 
									</a>
								</div>
								<div class="col-xs-6 d-wenzi-zuobian">
									<span {if $member} id="module_quanzan_{$id}"{/if}>{intval($quanzan)}</span>
								</div>
								<div class="d-clear"></div>
							</div>
							
						</div>
						<div class="col-md-4 col-xs-4 ">
							<div class="d-beijing-baise-10 d-hanggao-30 d-yuanjiao-10 d-wenzi-juzhong">浏览：{dr_show_hits($id)}</div>
						</div>
					</div>
				</div>

			</div>
			{if $glqz}
			<div class="d-kuan d-beijing-baise ">
				{module module=quan IN_id=$glqz return=r}
				<div class="col-md-3 col-xs-6  d-shangxia-10   d-shang-5 d-xia-5 d-quxian-0"> 
					<a class="d-buhuanhang" href="{$r.url}">
					    <div class=" d-yuanjiao-10">
					    	<img class="d-yuanjiao-20" src="{dr_get_file($r.thumb)}" height="40px"/>
					    </div>
						<div class="d-hanggao-40 d-zuo-10 d-chaochu">
							{$r.title}
						</div>
					</a>
				</div>
				{/module}
				<div class="d-clear"></div>
			</div>
			{/if}
			<div class="d-clear"></div>
			<!--圈子导航-->
			

			<div class="d-kuan d-beijing-baise d-bianhua-20 d-beijing-baise d-yuanjiao-bianhua-10-10-xia">
				
				{if $daohang==2 || $daohang==3}
				<div class="row d-buhuanhang d-xia-20">
					<div class="d-neikuang-5-10 d-wenzi-16 {if $_GET['qid'] == ''}d-a-hei d-jiacu {else} d-a-hui {/if}">
						<a href="/index.php?s=quan&c=show&id={$id}">全部</a>
					</div>
					{php $i=1;}
					{loop $son_type $tid $name}
					<div class="d-neikuang-5-10 d-wenzi-16  {if $_GET['qid'] == $i } d-jiacu d-a-hei {else} d-a-hui{/if}">
						<a href="/index.php?s=quan&c=show&id={$id}&qid={$i}">{$name}</a>
					</div>
					{php $i++;}
					{/loop}
					
					<!--div class="d-neikuang-5-10 d-wenzi-16 d-zitiyanse-hui">
						问答
					</div-->
				</div>
				<div class="d-xian"></div>
				{/if}
				
				<div class="row {if $daohang==2 || $daohang==3}d-shang-20{else}{/if}">
					{php $i=1;}
					{mform module=quan form=son order=inputtime cid=$id zhiding=1 num=4 return=tt}
						<div class="d-neikuang-5-10 d-wenzi-16  d-chaochu">
							<span class="d-wenzi-12 d-biaoqian-30 d-yuanjiao-5">置顶</span>
							<span class="d-quxian-0 d-zuo-10 ">
								<a href="/index.php?s=quan&c=son&id={$tt.id}">
									{$tt.title}
								</a>
							</span>
						</div>
						{php $i++;}
					{/mform}
				</div>
			</div>
			
			<!--圈子帖子-->
			<div id="content_list">
			    {template "show-list-data.html"}
			</div>
		</div>
		<div class="col-md-4 d-yincang">
			<div class="d-yuanjiao-10 d-kuan d-beijing-baise d-bianhua-10 d-gao-200">
				{if $fabu == 1}
				<div class="d-kuan d-beijing-fenhong d-hanggao-50 d-yuanjiao-10 d-wenzi-juzhong d-quxian-0 d-xia-15 d-zitiyanse-bai">
					<a href="/index.php?s=member&app=quan&c=son&m=add&tid=&cid={$id}" class="d-jiacu d-wenzi-16">发 帖</a>
				</div>
				{else}
					{if $uid == $member.uid}
						<div class="d-kuan d-beijing-fenhong d-hanggao-50 d-yuanjiao-10 d-wenzi-juzhong d-quxian-0 d-xia-15 d-zitiyanse-bai">
							<a href="/index.php?s=member&app=quan&c=son&m=add&tid=&cid={$id}" class="d-jiacu d-wenzi-16">发 帖</a>
						</div>
					{/if}
				{/if}
				<div class="d-kuan d-buhuanhang d-xia-10">
					<div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-16">
						圈子资讯
					</div>
					<div class="d-yuanjiao-20 d-kuan-100 d-wenzi-youbian d-zitiyanse-hui d-jiacu d-wenzi-16">
						更多
					</div>
				</div>
				{php $i=1;}
				{mform module=quan form=son order=inputtime tuijian=1 return=t}
				<div class="d-hanggao-40 d-wenzi-16 d-quxian-0 d-chaochu">
					<span class="d-jiacu d-you-10 {if $i<3}d-zitiyanse-hongse{/if}">{$i}</span>
					<a href="/index.php?s=quan&c=son&id={$t.id}"> {$t.title}</a>
				</div>
				
				{php $i++;}
				{/mform}
			</div>
			<div class="d-yuanjiao-10 d-kuan d-beijing-baise d-bianhua-20 d-shang-20">
				<div class="d-kuan d-buhuanhang">
					<div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-16">
						推荐圈子
					</div>
					
				</div>
				<div class="d-kuan">
					<div class="row">
						{module module=quan flag=1}
						    <div class="col-md-3 col-xs-3 d-waigao-20 d-quxian">
								<a href="{$t.url}">
									<div class="d-wenzi-juzhong d-yuanjiao-10">
										<img class="d-yuanjiao-20" src="{dr_thumb($t.thumb)}" height="50px"/>
										<div class="d-wenzi-juzhong d-wenzi-12 d-waigao-10">{dr_strcut($t['title'], 15, '')}</div>
									</div>
								</a>
						    </div>
						{/module}
					</div>
				</div>
			</div>
			
		</div>
	</div>
</div>

<style>

</style>


<!--尾部导航-->
{template "show-weibudaohang.html"}
{template "fanhui.html"}
{template "css-js.html"}
{template "footer.html"}